<?php

namespace App\Services\Fund;

use App\Services\ProjectValidate;

/**
 *
 * Class ValidateCurrencyOptionLog
 * @package App\Services\Fund
 */
class ValidateCurrencyOptionLog extends ProjectValidate
{

    /**
     * 自定义子类初始化
     * @param array $initData
     * @return mixed
     */
    public function initValidate($initData = [])
    {
        // TODO: Implement initValidate() method.
        if (!empty($initData['type'])) {
            $this->rules['type']  = 'in:freeze_fund,freeze_currency,freeze_integral';
        }
    }


    /**
     * @var array 用户模块的验证集合
     */
    public $rules = [
        'user_ids'       => 'min:1|max:256',
        'user_id'        => 'int|min:1',
        'type'             => 'in:init,prepaid,transfer,freeze,unfreeze',
    ];
   
  
    public $messages = [
       
    ];

    /**
     * @var array 上面规则中定义的 key 的名字
     */
    public $attributes = [
      
    ];

   
}